package com.ming_za.odupdaterserver.core.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "设置资源标签所需参数")
@Data
public class SetResLabelVo {

    @Schema(description = "资源id")
    @NotNull(message = "资源id不能为空")
    private Long resId;

    @Schema(description = "标签，默认为0（默认标签）",defaultValue = "0")
    private Long label;

    public SetResLabelVo(Long resId, Long label) {
        this.resId = resId;
        this.label = label;
    }

    public SetResLabelVo() {
    }
}
